package com.dkm.biz.gl.domain;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.biz.domain.AbstractDomain;
import com.dkm.biz.gl.event.GlValidateEvent;
import com.dkm.biz.gl.persistence.dao.ValidateDao;
import com.dkm.biz.gl.persistence.entity.ValidatePo;

/**
 * 对象功能:skg_gl_validate 领域对象实体
 * 开发公司:SKG.COM
 * 开发人员:蔡东渠
 * 创建时间:2015-03-06 11:48:32
 */
@SuppressWarnings("serial")
@Service
@Scope("prototype")
public class Validate extends AbstractDomain<String, ValidatePo>{
	 
	 private ValidateDao validateDao = null;

	protected void init(){
		validateDao = SpringHelper.getBean(ValidateDao.class);
		setDao(validateDao);
	}

	public void saveCascade() {
		super.save();
		GlValidateEvent glValidateEvent=new GlValidateEvent(getData());
		SpringHelper.publishEvent(glValidateEvent);
	}	 
	 
}
